public class Box {
    private double width;
    private double length;
    private double height;
    public Box(double width,double length,double height){
        this.width = width;
        this.length = length;
        this.height = height;
    }
    public void showBox(){
        System.out.println("盒子的宽为： "+width+"长为： "+length+"高为： "+height);
    }

    public static void main(String[] args) {
        Box box = new Box(10,20,30);
        box.showBox();
    }
}
